package com.woniuxy.microaftersaleserver.openFegin;

import com.woniuxy.microcommonserver.bean.gy.GoodsInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "micro-goods-server")
public interface MicroGoodsServerFeign {

    /**
     * 根据ID调用商品微服务接口，查询商品信息
     * @param id
     * @return
     */
    @GetMapping(value = "/goods/findGoodById",produces = MediaType.APPLICATION_JSON_VALUE)
    String findGoodsById( Integer id);
}
